package com.zk.service.impl;




import java.util.List;

import javax.annotation.Resource;




import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.zk.dao.OrgMapper;
import com.zk.entity.Org;
import com.zk.service.OrgService;
@Transactional
@Service("orgService")
public class OrgServiceImpl implements OrgService {

	@Resource  
	OrgMapper orgMapper;

	@Override
	public void addOrg(Org org) {
		// TODO Auto-generated method stub
		orgMapper.addOrg(org);
	}

	@Override
	public Org getOrg(String date) {
		// TODO Auto-generated method stub
		return orgMapper.getOrg(date);
	}

	@Override
	public void updateOrganization(Org org) {
		// TODO Auto-generated method stub
		orgMapper.updateOrganization(org);
	}

	@Override
	public void deleteOrganization(Org org) {
		// TODO Auto-generated method stub
		orgMapper.deleteOrganization(org);
	}

	@Override
	public void deleteOrganizationLogic(Org org) {
		// TODO Auto-generated method stub
		orgMapper.deleteOrganizationLogic(org);
		
	}

	@Override
	public List<Org> getOrganization(String starttime, String endtime,
			List<String> deptid) {
		// TODO Auto-generated method stub
		return orgMapper.getOrganization(starttime, endtime, deptid);
	}

	@Override
	public void organizationMove(Org org) {
		// TODO Auto-generated method stub
		orgMapper.organizationMove(org);
	}

}
